﻿@model EnetaMvc.ApplicationServices.Dto.CommentDto[]
           
<h3><a href="#">@Resources.EnetaMvc.Comments @(Model.Length == 0 ? "" : "(" + Model.Length + ")")</a></h3>
                
@for (var i = 0; i < Model.Length; i++)
{
    var comment = Model[i];
    var commentSuffix = (i % 2 == 1 ? "" : "colorise");
                    
    <div class="comment @commentSuffix">
	    <div class="blog-foto"> <a href="@Url.Content("~/profiles/details/" + comment.AuthorId)" title="@comment.AuthorUserName"><img alt="@comment.AuthorUserName" src="@Html.GetProfileUrl(comment.AuthorId)" width="32" height="32" /></a> </div>
	    <div class="comment-txt">
		    <p>@comment.Body</p>
		    <ul>
			    <li><a href="@Url.Content("~/profiles/details/" + comment.AuthorId)">@comment.AuthorUserName</a></li>
			    <li>@comment.Created</li>
		    </ul>
	    </div>
    </div>
}

